<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PackageMaster
 *
 * @author user
 */
class PackageMaster {
    
    private static $inited = false;
    private static $cfg;
    private static $files;

    private static function init() {
        self::$files = new Config('files.list');
        self::$cfg = new Config('packmas.cfg');
        self::$inited = true;
    }

    public static function get_package_list() {
        self::$init;
        if (!self::$cfg->repositoryURL) {
            self::$cfg->repositoryURL = 'http://xendri.ru/repo/'.XENDRI_VERSION.'/'.XENDRI_DISTR.'/';
            self::$cfg->repositoryList = 'packages.xml';
            self::$cfg->save();
        }
        $url = self::$cfg->repositoryURL;
        $list = self::$cfg->repositoryList;

    }
}
?>
